package com.aifund.orderservice.service.impl;

import com.aifund.common.dao.ExchangeDao;
import com.aifund.orderservice.service.ExchangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ExchangeServiceImpl implements ExchangeService {

    @Autowired
    ExchangeDao exchangeDao;

    @Override
    public Long getIdByExchangeNameEn(String namEn) {
        return exchangeDao.getByExchangeNameEn(namEn).getId();
    }
}
